Dynomotion

Group: DynoMotion Message: 8456 From: Hugh Sontag Date: 10/7/2013
Subject: KMotionCNC Y and Z axes not enabled?
Hi Tom,

I'm running KMotionCNC at the same time as KMotion in Windows XP.

The Y and Z axes are shown in yellow, which says that the axis is not enabled. But in KMotion, all four motors show a check in the corresponding "Enabled" box.

The X axis responds to pressing the left and right buttons, but the Y and Z axes do not.

Running a User C Program that moves the Y axis 20000 encoder counts works.

It looks like the Y and Z axes are enabled in KMotion, but KMotionCNC claims that they aren't.

How can I get the Y and Z axes to respond to the up and down buttons in KMotionCNC?

Thanks,
Hugh
Group: DynoMotion Message: 8457 From: Tom Kerekes Date: 10/7/2013
Subject: Re: KMotionCNC Y and Z axes not enabled?
Hi Hugh,

The mapping of GCode Axes (X Y Z A) to KFLOP axes channels needs to be defined with something like:

    DefineCoordSystem(0,1,2,-1);

Do you have this?  If you have a Master/Slave arrangement then only include the Master.  Do not include the Slave.

HTH
Regards
TK





Group: DynoMotion Message: 8458 From: Hugh Sontag Date: 10/7/2013
Subject: Re: KMotionCNC Y and Z axes not enabled?
Hi Tom,

DefineCoordSystem() made the axes enabled (green) (well, some of the time), and all three axes respond to buttons in KMotionCNC.

But the co-ordinates in KMotionCNC flash alternately between all zeroes in green and a set of large numbers in yellow (-250, -353, -337). As they flash, if I zero the yellow number, I get a green number that is the negative of the yellow number.

How can I get the numbers to display in green only?

Thanks,
Hugh




On Mon, Oct 7, 2013 at 11:52 AM, Tom Kerekes <tk@...> wrote:
 

Hi Hugh,

The mapping of GCode Axes (X Y Z A) to KFLOP axes channels needs to be defined with something like:

    DefineCoordSystem(0,1,2,-1);

Do you have this?  If you have a Master/Slave arrangement then only include the Master.  Do not include the Slave.

HTH
Regards
TK





Group: DynoMotion Message: 8459 From: Tom Kerekes Date: 10/7/2013
Subject: Re: KMotionCNC Y and Z axes not enabled?
Hi Hugh,

Seems strange.  If KMotionCNC can't get status from KFLOP it will display as yellow.  Are there any error messages on the KMotion Console Screen?  Could your computer's USB be very slow for some reason?  Running extra copies of any applications?

Regards
TK


Group: DynoMotion Message: 8460 From: Hugh Sontag Date: 10/7/2013
Subject: Re: KMotionCNC Y and Z axes not enabled?
Maybe not so strange. Windows XP is running inside Parallels on a MacBook Pro laptop.

I don't know how much latency there might be added to USB communications, but that could be the cause.

All in all, the virtualization provided by Parallels has allowed KMotion to work well in this environment.

How long is the timeout for an expected response from KFLOP?

Hugh


On Mon, Oct 7, 2013 at 1:48 PM, Tom Kerekes <tk@...> wrote:
 

Hi Hugh,

Seems strange.  If KMotionCNC can't get status from KFLOP it will display as yellow.  Are there any error messages on the KMotion Console Screen?  Could your computer's USB be very slow for some reason?  Running extra copies of any applications?

Regards
TK


Group: DynoMotion Message: 8461 From: Tom Kerekes Date: 10/7/2013
Subject: Re: KMotionCNC Y and Z axes not enabled?
Hi Hugh,

The line in KMotionCNCDlg.cpp of:

           result=TheFrame->KMotionDLL->WaitToken(false,100.0);

attempts to get access to KFLOP for status updates for 100 milliseconds and if unable gives up.  You would need to re-compile to change this.

BTW the pre-compiled SimpleFormsCS.exe example has a button to test the USB throughput for large blocks.

Regards
TK